import os
source_file_name,suffix = os.path.splitext("狗头.jpeg")

source_file = open("test/狗头.jpeg","rb")

new_file_name = source_file_name+"-副本" + suffix
new_file = open(f"test/{new_file_name}","ab")


while True:
    content = source_file.read(1024)
    new_file.write(content)
    if not content:
        break

source_file.close()
new_file.close()